home *** CD-ROM | disk | FTP | other *** search
- #ifndef _MAILUTIL_H
- #define _MAILUTIL_H
-
- #include <stdio.h>
-
- /* Header types */
- #define NOHEADER -1
- #define APPROVED 0
- #define FROM 1
- #define TO 2
- #define DATE 3
- #define MSGID 4
- #define SUBJECT 5
- #define RECEIVED 6
- #define SENDER 7
- #define REPLYTO 8
- #define STATUS 9
- #define BBSTYPE 10
- #define XFORWARD 11
- #define CC 12
- #define RRECEIPT 13
- #define APPARTO 14
- #define ERRORSTO 15
- #define ORGANIZATION 16
- #define NEWSGROUPS 17
- #define PATH 18
- #define XBBSHOLD 19
- #define XMAILGROUP 20
- #define UNKNOWN 21
-
- extern char *Hdrs[];
-
- int recvmail __ARGS((int s, char *buf, unsigned len, FILE *fp, int trace));
- int copymail __ARGS((char *buf, unsigned len, FILE *fp));
-
- int mlock __ARGS((char *dir,char *id));
- int rmlock __ARGS((char *dir,char *id));
- char *getname __ARGS((char *cp));
- char *getaddress __ARGS((char *string,int cont));
- int htype __ARGS((char *s));
- char *rewrite_address __ARGS((char *addr));
-
- #endif /* _MAILUTIL_H */
-